package com.retailshop.shopuser.service.impl;

import com.retailshop.shopuser.entity.SignVoucher;
import com.retailshop.shopuser.mapper.SignVoucherMapper;
import com.retailshop.shopuser.service.SignVoucherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("signVoucherService")
public class SignVoucherServiceImpl implements SignVoucherService {

    @Autowired
    SignVoucherMapper signVoucherMapper;

    @Override
    public int deleteByPrimaryKey(Integer voucherId) {
        return signVoucherMapper.deleteByPrimaryKey(voucherId);
    }

    @Override
    public int insert(SignVoucher record) {
        return signVoucherMapper.insert(record);
    }

    @Override
    public int insertSelective(SignVoucher record) {
        return signVoucherMapper.insertSelective(record);
    }

    @Override
    public SignVoucher selectByPrimaryKey(Integer voucherId) {
        return signVoucherMapper.selectByPrimaryKey(voucherId);
    }

    @Override
    public int updateByPrimaryKeySelective(SignVoucher record) {
        return signVoucherMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(SignVoucher record) {
        return signVoucherMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<SignVoucher> selectList() {
        return signVoucherMapper.selectList();
    }

    @Override
    public SignVoucher selectVoucherByDays(int signDays) {
        return signVoucherMapper.selectBySignDays(signDays);
    }
}
